<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>添加发动机技术参数</title>
    <link rel="stylesheet" href="<%=basePath%>ext3.4/resources/css/ext-all.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>ext3.4/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/src/locale/ext-lang-zh_CN.js"></script>
<style type="text/css">
	h4{ background:#00afb9; color:#fff; padding-left:15px; line-height:30px; width:490px;}
   	.d_t td{font-size:14px; text-align:left; color:#555; padding-bottom:8px;}
	.d_t th{font-size:14px; text-align:right; color:#555; padding-bottom:8px;}
	.d_t input{ height:26px;}
	.t_r{padding-left:15px;}
	.btn_1{ width:112px; height:32px; background:url(btn_1.gif) no-repeat 0 0; border:none; font-weight:bold; color:#fff; font-size:14px; margin-top:15px;}
	.btn_1:hover{ background:url(btn_1.gif) no-repeat 0 -33px;}	
	p{text-align:center;}
</style>
<script type="text/javascript">
Ext.onReady(function(){
//发动机形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboFormList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'form',
	renderTo:'form'
});
//汽缸数与排列
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboCylinderArrangementList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'cylinderArrangement',
	renderTo:'cylinderArrangement'
});
//缸径与行程
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboBoreAndStrokeList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'boreAndStroke',
	renderTo:'boreAndStroke'
});
//压缩比
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboCompressionRatioList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'compressionRatio',
	renderTo:'compressionRatio'
});
//启动方式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboStartupModeList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'startupMode',
	renderTo:'startupMode'
});
//冬季机油种类
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboOilTypesList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'oilTypes',
	renderTo:'oilTypes'
});
//夏季机油种类
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboOilTypes02List.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'oilTypes02',
	renderTo:'oilTypes02'
});
})
</script>
  </head>
  <body>
  <h4>添加发动机技术参数</h4>
   <form action="<%=basePath%>carInfo/addEngineInfo.action" method="post">
   <input type="hidden" name="uid" value="<%=request.getAttribute("uid") %>"/>
	<table  class="d_t">
   	<tr> <th>型号:</th><td><input type="text" name="model"/></td> <th class="t_r">形式:</th><td><div id="form"></div></td> </tr>
   	<tr> <th>制造厂:</th><td><input type="text" name="manufacturingPlant"/></td> <th class="t_r">汽缸数与排列:</th><td><div id="cylinderArrangement"></div></td> </tr>
   	<tr> <th>排量:</th><td><input type="text" name="displacement"/></td> <th class="t_r">缸径与行程:</th><td><div id="boreAndStroke"></div></td> </tr>
   	<tr> <th>压缩比:</th><td><div id="compressionRatio"></div></td> <th class="t_r">启动方式:</th><td><div id="startupMode"></div></td> </tr>
   	<tr> <th>气缸工作顺序:</th><td><input type="text" name="workOrder"/></td> <th class="t_r">最大功率:</th><td><input type="text" name="mostPowerful"/></td> </tr>
   	<tr> <th>最大扭矩:</th><td><input type="text" name="maximumTorque"/></td> <th class="t_r">冬季机油种类:</th><td><div id="oilTypes"></div></td> </tr>
   	<tr> <th>夏季机油种类:</th><td><div id="oilTypes02"></div></td> <th></th><td></td> </tr>
   	<tr> <th>备注:</th><td colspan="3"><textarea name="remark" style=" width:430px;resize: none;"></textarea></td> </tr>
   	<tr><td colspan="4" style="text-align:center"><input type="submit" value="提交" class="btn_1"/></td></tr>
   </table>
   </form>
  </body>
</html>
